package com.weiyi.chat.ui.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.TextView;

import com.weiyi.chat.R;
import com.weiyi.chat.common.base.BaseActivity;
import com.weiyi.chat.view.widget.HeadLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import jp.wasabeef.richeditor.RichEditor;

public class MsgContentActivity extends BaseActivity {

    @BindView(R.id.hl_head)
    HeadLayout mHlHead;
    @BindView(R.id.rich_editor)
    RichEditor rich_editor;

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_msg_content;
    }

    @Override
    protected void initView() {
        String content = getIntent().getStringExtra("content");
        mHlHead.setTitle("公告内容");
        mHlHead.setBackVisibility(true);

        rich_editor.setHtml(content);
//        //自适应屏幕
//        mWebView.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);
//        mWebView.getSettings().setLoadWithOverviewMode(true);
//        mWebView.loadData(content, "text/html", "utf-8");
    }

    @Override
    protected void initData() {

    }
}
